dojo.provide("uws.drawing.activity.Decision");
dojo.require('uws.drawing.Component');

dojo.declare('uws.drawing.activity.Decision',uws.drawing.Component,{
	constructor: function(surface,id,dx,dy, sortOrder,label,fromDS){
		this.center_x = 15;
		this.center_y = 15;
		this.label = label;
		this.sortOrder = sortOrder;
		
		if(fromDS){
			dx+=this.center_x;
			dy+=this.center_y;
		}
		
		//connectors
		this.top_con=this.connectors_shape_group.createCircle({
			cx:-21,
			cy:-20,
			r:3
		}).setStroke("white").setFill("white");
		
		this.bottom_con=this.connectors_shape_group.createCircle({
			cx:-21,
			cy:22,
			r:3
		}).setStroke("white").setFill("white");
		
		this.left_con=this.connectors_shape_group.createCircle({
			cx:-42,
			cy:2,
			r:3
		}).setStroke("white").setFill("white");
		
		this.right_con=this.connectors_shape_group.createCircle({
			cx:0,
			cy:2,
			r:3
		}).setStroke("white").setFill("white");
		
		this.actual_shape_group.createRect({
			x:0,
			y:0,
			width:30,
			height:30
		}).setFill("white").setStroke("black").setTransform([dojox.gfx.matrix.rotate(40)]);
		
		this._postCreate(dx, dy);
	},
	applyProperties:function(properties){
		
	}
});